package com.wiloon.java8x.dataImport;

import com.wiloon.java8x.datadictionary.DatabaseColumn;

/**
 * Created by Administrator on 2015/5/27.
 */
public class ColumnMap {
    private DatabaseColumn databaseColumn;
    private ExcelColumn excelColumn;

    public ColumnMap() {

    }

    public ColumnMap(DatabaseColumn databaseColumn, ExcelColumn excelColumn) {
        this.databaseColumn = databaseColumn;
        this.excelColumn = excelColumn;

    }

    public ColumnMap(int excelColumnIndex, String databaseColumnName) {
        this.databaseColumn = new DatabaseColumn(databaseColumnName);
        this.excelColumn = new ExcelColumn(excelColumnIndex);

    }

    public DatabaseColumn getDatabaseColumn() {
        return databaseColumn;
    }

    public void setDatabaseColumn(DatabaseColumn databaseColumn) {
        this.databaseColumn = databaseColumn;
    }

    public ExcelColumn getExcelColumn() {
        return excelColumn;
    }

    public void setExcelColumn(ExcelColumn excelColumn) {
        this.excelColumn = excelColumn;
    }
}
